package com.company.singleton.fork;

public class Holder {
    private static class HolderInner{
        private static final Holder HOLDER = new Holder();
    }
    private Holder(){}
    public static Holder getInstance(){
        return HolderInner.HOLDER;
    }

    public static void main(String[] args) {
        Holder instance = Holder.getInstance();
        Holder instance2 = Holder.getInstance();
        System.out.println(instance2);
        System.out.println(instance);
    }
}
